package br.unesp.demac.ccn07.clientes.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Conexao {
	
	protected Connection conexao;
	
	public Conexao() throws ClassNotFoundException, SQLException {
		
		String username = "root";
		String password = "";
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost/lcp";
		
		
		Class.forName(driver);
		
		conexao = DriverManager.getConnection(url, username, password);
	}
	
	public Connection getConexao() {
		return conexao;
	}

}
